package com.macro.mall.demo.service;

import com.macro.mall.demo.dto.DocSaveDto;
import com.macro.mall.demo.dto.DocSearchRequest;

import java.util.List;

/**
 * @Author：尚志豪
 * @Package：com.macro.mall.demo.service
 * @Project：mall-swarm-B
 * @name：EsDocService
 * @Date：2024/10/25 20:37
 */
public interface EsDocService {

    /**
     * 添加文档
     * @param docSaveDto
     */
    void save(DocSaveDto docSaveDto);

    /**
     * 删除文档
     * @param indexName
     */
    void delete(String indexName);

    List source(DocSearchRequest docSearchRequest);
}
